import { ModelBase } from "@models/model.base";

enum Direction {
  buy,
  sell,
}

class OrderModel extends ModelBase {
  productId: string;
  quantity: number;
  price: number;
  direction: Direction;

  constructor(
    id: string,
    productId: string,
    quantity: number,
    price: number,
    direction: Direction
  ) {
    super(id);

    this.productId = productId;
    this.quantity = quantity;
    this.price = price;
    this.direction = direction;
  }
}

export { Direction, OrderModel };
